package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * @author: wufeng
 * @date: 2018/8/10 15:13
 * @desrcption: 表单设计对象
 */
@Getter
@Setter
@ToString
public class FormAddDTO extends BaseDTO {

    private static final long serialVersionUID = 6845449318811350095L;

    /**
     * 应用id
     */
    @NotNull(message = "{dto.msg.formAdd.appId.NotNull}")
    private Long appId;

    private Long menuId;

    private String name;

    private String nameEn;

    /**
     * 表单模板id
     */
    private Long formId;

    /**
     * 表单验证规则
     */
    private String verifyRule;
    /**
     * 表单设计属性
     */
    private FormEntityAddDTO formAttr;

    public FormAddDTO(){
        formAttr = new FormEntityAddDTO();
    }

}
